import { Home, Layout, ListAdd, ListManage, Login } from '../views'

export interface RouteState {
	path: string
	element: React.LazyExoticComponent<any>,
	children?: RouteState[]
}

export const routes: RouteState[] = [{
	path: '/login',
	element: Login
}, {
	path: '/',
	element: Layout,
	children: [{
		path: '/',
		element: Home
	}, {
		path: '/list/add',
		element: ListAdd
	}, {
		path: '/list/manage',
		element: ListManage
	}]
}]

